﻿// Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using System;
using System.Collections.Generic;

// ReSharper disable once CheckNamespace
namespace DotNetFramework.CAP
{
    public enum MqttProcotolType
    {
        tcp, ws
    }
    /// <summary>
    /// Provides programmatic configuration for the CAP kafka project.
    /// </summary>
    public class MqttOptions
    {
        public MqttProcotolType Procotol { get; set; } = MqttProcotolType.tcp;
        public string ProcotolPath { get; set; } = "mqtt";
        public string Server
        {
            get;
            set;
        }

        public int Port
        {
            get;
            set;
        }

        public string ClientId
        {
            get;
            set;
        }

        public string UserName
        {
            get;
            set;
        }

        public string Password
        {
            get;
            set;
        }

        public int ConnectionPoolSize
        {
            get;
            set;
        }

        public MqttOptions()
        {
            this.Server = "localhost";
        }
    }
}